# -*- coding:utf-8 -*-
from django.conf.urls import url

from trade.views import paper, live, log, enviro, transfer, query, hisQuery, paper_monitor, live_monitor

urlpatterns = [
    url(r'^paper/$', paper.Paper.as_view(), name='paper'),  # 仿真策略
    url(r'^paper_approval/$', paper.PaperApproval.as_view(), name='paper_approval'),  # 仿真策略审批
    url(r'^check_qb/$', paper.CheckQB),  # 申请实盘，校验qb账号
    url(r'^incomeStatistics/$', paper.detail_incomeStatistics.as_view(), name='paper_incomeStatistics'),  # 收益概览
    url(r'^cumulativereturns/$', paper.detail_cumulativereturns.as_view(), name='paper_cumulativereturns'),  # 净值曲线
    url(r'^myback_paper/$',paper.AppPaper, name="AppPaper"),

    url(r'^live/$', live.Live.as_view(), name='live'),  # 实盘策略
    url(r'^live_approval/$', live.LiveApproval.as_view(), name='live_approval'),  # 实盘策略审批
    url(r'^alter_qb/$', live.AlterQB),  # 修改qb账号
    url(r'^LincomeStatistics/$', live.detail_incomeStatistics.as_view(), name='live_incomeStatistics'),  # 收益概览
    url(r'^Lcumulativereturns/$', live.detail_cumulativereturns.as_view(), name='live_cumulativereturns'),  # 净值曲线

    url(r'^log/$', log.Log.as_view(), name='log'),  # 配置管理-操作日志
    url(r'^enviro/$', enviro.Enviro.as_view(), name='enviro'),  # 配置管理-策略环境管理

    url(r'^transfer_application/$', transfer.TransferApplication.as_view()),  # 移交申请
    url(r'^transfer_approval/$', transfer.TransferApproval.as_view()),  # 移交审批

    url(r'^query/$', query.Query.as_view(), name='query'),  # 当日查询
    url(r'^his_query/$', hisQuery.HisQuery.as_view(), name='his_query'),  # 历史查询

    ######## 仿真策略监控 ########
    url(r'^paper_monitor/$', paper_monitor.paper_monitor),
    url(r'^alterpara/$', paper_monitor.alterpara, name="alterpara"),  # 修改策略参数
    url(r'^stcPriskinfo/$', paper_monitor.stcPaperRiskInfo, name="stcPriskinfo"),  # 仿真监控--风控信息
    url(r'^hand_input/$', paper_monitor.handInput, name="handInput"),  # 人工录入
    url(r'^PaperStg/$', paper_monitor.PaperStg, name="paperstg"),  # 整理前端展示的策略

    ######## 实盘策略监控 ########
    url(r'^live_monitor/$', live_monitor.live_monitor),
    url(r'^live_alterpara/$', live_monitor.alterpara, name="live_alterpara"),  # 修改策略参数
    url(r'^stcLriskinfo/$', live_monitor.stcLiveRiskInfo, name="stcLriskinfo"),  # 实盘监控--风控信息
    url(r'^live_hand_input/$', live_monitor.LhandInput, name="LhandInput"),
    url(r'^LiveStg/$', live_monitor.LiveStg),  # 整理前端展示的策略
]
